package com.songcha.module_category.api




import com.songcha.library_business.bean.book.BookListBean
import com.songcha.library_business.bean.book.BookNetBean
import com.songcha.library_network.bean.BaseListDataBean
import com.songcha.module_category.bean.CategoryChannelListBean
import com.songcha.module_category.bean.CategoryChannelSubListBean
import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface CategoryApiService {

    @GET("/api/getChannelTitle")
    fun getCategoryChannelList():Observable<CategoryChannelListBean>

    @GET("/api/getChannelCategoryByChannelId/{channelId}")
    fun getCategoryChannelSubList(@Path("channelId") channelId:Int):Observable<CategoryChannelSubListBean>

    @POST("/api/getBookByChannel/{channelId}/{current}/10")
    fun getCategoryChannelSubEndBookList(@Path("channelId") channelId:Int,@Path("current") current:Int):Observable<BookListBean>

    @POST("/api/getBookByChannelCategoryId/{channelCategoryId}/{current}/10")
    fun getCategoryDetailBookList(@Path("channelCategoryId") channelCategoryId:Int,@Path("current") current:Int,@Body body:RequestBody):Observable<BookListBean>

    @GET("/api/getRecommendBookDb")
    fun getHomeRecommendDialogBookList():Observable<BaseListDataBean<BookNetBean>>
}